<?php
$config = array(
	'title'			=> 'Data Stok',
	'relative_link'	=> 'index.php?bagian='.$bagian.'&subbagian='.$subbagian.'&action=view',
	'col_name'		=> array('id', 'nama', 'telp', 'contact_person', 'hp'),
	'col_title'		=> array('ID', 'Nama', 'Telepon', 'Contact Person', 'Handphone'),
	'total_record'	=> $model->countAll()
);

$data = $model->search(); 
 
$viewHandler  = new GridView($data, $config);
$viewHandler->create();
?>